Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Give a production grammar for the language L ... Start Learning for Free
Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.
  • a)
    {S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}
  • b)
    {S->aS,S->bA,A->bB,B->bBa,B->bB}
  • c)
    {S->aaS,S->bbA,A->bB,B->ba}
  • d)
    None of the mentioned
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Give a production grammar for the language L = {x/x ∈ (a,b)*, the...
The above given condition is satisfied by
S->bS S->B
S->aA s->bA A->aB B->bB
B->aS S->a.
View all questions of this test
Most Upvoted Answer
Give a production grammar for the language L = {x/x ∈ (a,b)*, the...
S → 0S1 | ε
Free Test
Community Answer
Give a production grammar for the language L = {x/x ∈ (a,b)*, the...
S->bA->baB->baaS->baab
So answer is D
Explore Courses for Computer Science Engineering (CSE) exam
Question Description
Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer?.
Solutions for Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.a){S->bS, S->b,S->aA, S->bA, A->aB, B->bB, B->aS, S->a}b){S->aS,S->bA,A->bB,B->bBa,B->bB}c){S->aaS,S->bbA,A->bB,B->ba}d)None of the mentionedCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam
Signup to solve all Doubts
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev